<include file="Home@Public:header" />
<div class="row">
	<div class="col-sm-3 col-xs-3">
		<div class="panel panel-default">
			<div class="panel-heading">菜品分类</div>
			<ul class="list-group">
			<volist name="food_cate" id="item">
				<li class="list-group-item">
					<a href="{:U('Food/Index/index',array('id'=>$item['fcid']))}">{$item['fcname']}</a>
				</li>
			</volist>
			</ul>
		</div>
		<include file="Home@Ajax:cart" />
	</div>
	<div class="col-sm-9 col-xs-9">
		<div class="panel panel-default">
			<div class="panel-heading">{$cate['fcname']}</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-sm-12 col-md-12">
						<div class="pull-right" style="margin-bottom:10px;">
							<div class="btn-group">
								<a href="{:U('Food/Index/index',array('id'=>$_GET['id'],'sort'=>'time'))}" class="btn <if condition="$sort eq 'time'">btn-primary<else/>btn-default</if>">
									<i class="glyphicon glyphicon-time"></i> 时间
								</a>
								<a href="{:U('Food/Index/index',array('id'=>$_GET['id'],'sort'=>'hot'))}" class="btn <if condition="$sort eq 'hot'">btn-primary<else/>btn-default</if>">
									<i class="glyphicon glyphicon-fire"></i> 人气
								</a>
								<a href="{:U('Food/Index/index',array('id'=>$_GET['id'],'sort'=>'price'))}" class="btn <if condition="$sort eq 'price'">btn-primary<else/>btn-default</if>">
									<i class="glyphicon glyphicon-star"></i> 价格
								</a>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<volist name="list" id="item">
					<div class="col-sm-6 col-md-4">
						<div class="thumbnail">
							<p><b>{$item['fname']}</b></p>
							<img src="{$item['fpic']}.thumb.jpg" alt="{$item['fname']}" width="100%">
							<div class="caption">
								<p>
									<span class="pull-right" style="line-height:35px;">￥ <b>{$item['fprice']}</b></span>
									<a href="{:U('Food/Cart/cartadd',array('id'=>$item['fid']))}" data-target="#ajax_target" data-trigger="ajax" class="btn btn-danger" role="button">
										<i class="glyphicon glyphicon-shopping-cart"></i> 订一份
									</a>
								</p>
							</div>
						</div>
					</div>
					</volist>
				</div>
				<div class="page">{$page}</div>
			</div>
		</div>
	</div>
</div>
<include file="Home@Public:footer" />